furny.ga.tuples
Class Couple<A,B>

java.lang.Object
  extended by furny.ga.tuples.Couple<A,B>
Type Parameters:
A - Type of valueA.
B - Type of valueB.

public class Couple<A,B>
extends java.lang.Object

An immutable couple of two values.

Since:
11.08.2012
Author:
Stephan Dreyer

Field Summary
private  A valueA
           
private  B valueB
           
 
Constructor Summary
Couple(A valueA, B valueB)
          Creates a new couple.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 A getValueA()
          Getter for valueA.
 B getValueB()
          Getter for valueB.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueA

private final A valueA

valueB

private final B valueB
Constructor Detail

Couple

public Couple(A valueA,
              B valueB)
Creates a new couple.

Parameters:
valueA - The value a.
valueB - The value b.
Since:
11.08.2012
Method Detail

getValueA

public A getValueA()
Getter for valueA.

Returns:
valueA.
Since:
11.08.2012

getValueB

public B getValueB()
Getter for valueB.

Returns:
valueB.
Since:
11.08.2012

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object